-- GENERATED SPELL FOR [Marshrock Stomper] --


function spell0_20283(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(12612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20283', 541, 1)
end

function spell1_20283(pUnit, Event) --@Threshalisk Charge,n/a--
pUnit:FullCastSpellOnTarget(35385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20283', 612, 1)
end

function Sorts_20283(pUnit, Event)
local choix_sorts_20283 = math.random(0, 1)
if choix_sorts_20283 == 0 then
pUnit:RegisterEvent('spell0_20283', 1, 1)
end
if choix_sorts_20283 == 1 then
pUnit:RegisterEvent('spell1_20283', 1, 1)
end
end

function mob20283_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20283', math.random(1500, 3000), 1)
end

function mob20283_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20283_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20283_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20283, 1, 'mob20283_Action')
RegisterUnitEvent(20283, 2, 'mob20283_Leave')
RegisterUnitEvent(20283, 3, 'mob20283_Kill')
RegisterUnitEvent(20283, 4, 'mob20283_Die')
